<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Get_images extends Admin_Controller{

	function Get_images(){
        parent::Admin_Controller();
        $CI = & get_instance();    
	}
	
	function index(){
		$this->lists();
	}
    
    function lists(){		
        $CI = & get_instance();
        $base_url = 'admin/get_images.get_images';
		$CI->load->module_library('users.auth');
        $auth_data = $CI->auth->get_auth_data();
		$CI->load->library("fckeditor");
		$newpath = $CI->fckeditor->UploadPath.'/images';		
		$newpath = str_replace(base_url(),"./",$newpath);
		
		
        $this->module_toolbar('upload_images.toolbar');
		$this->module_navigation(lang('_title'));
        $this->view('lists');
    }
    
    function detail1(){		
        $CI = & get_instance();
        $base_url = 'admin/get_images.get_images';
		$CI->load->module_library('users.auth');
        $auth_data = $CI->auth->get_auth_data();
		$CI->load->library("fckeditor");
		$newpath = $CI->fckeditor->UploadPath.'/images';		
		$newpath = str_replace(base_url(),"./",$newpath);
		
		
        $this->module_toolbar('upload_images.toolbar');
		$this->module_navigation(lang('_title'));
        $this->view('detail1');
    }
}